// TicketClerkCustomerWhiteboard
//
// This class represents the whiteboard space for one customer-ticket clerk interaction.
// It will be protected by a monitor and will be used by a head customer and ticket clerk
// to transfer information.
//

#include "FoodClerkCustomerWhiteboard.h"
#include "system.h"

// Initialize the GroupData object
FoodClerkCustomerWhiteboard::FoodClerkCustomerWhiteboard() {
	numPopcorn = 0;
	numSoda = 0;
	totalPrice = 0;
	moneyGiven = 0;
}

// returns the number of popcorn requested by the customer
int FoodClerkCustomerWhiteboard::getNumPopcorn() {
	return numPopcorn;
}
// returns the number of sodas requested by the customer
int FoodClerkCustomerWhiteboard::getNumSoda() {
	return numSoda;
}		
// returns the total price reported by the clerk
int FoodClerkCustomerWhiteboard::getTotalPrice() {
	return totalPrice;
}	
// returns the total money given by customer
// Note: expected to be the same as the price above
int FoodClerkCustomerWhiteboard::getMoneyGiven() {
	return moneyGiven;
}

// sets the number of popcorn requested by the customer
void FoodClerkCustomerWhiteboard::setNumPopcorn(int num) {
	this->numPopcorn = num;
}
// sets the number of sodas requested by the customer
void FoodClerkCustomerWhiteboard::setNumSoda(int num) {
	this->numSoda = num;
}
// sets the total price reported by the clerk
void FoodClerkCustomerWhiteboard::setTotalPrice(int price) {
	this->totalPrice = price;
}
// sets the total money given by customer
void FoodClerkCustomerWhiteboard::setMoneyGiven(int mg) {
	this->moneyGiven = mg;
}
